package com.thon.controller.system;

import java.util.List;


import org.apache.shiro.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.thon.controller.util.BaseController;
import com.thon.security.ShiroDbRealm.ShiroUser;

/**
 * @author thon
 */
@Controller
@RequestMapping(value = "/verify")
public class VerifyController extends BaseController{
	
	@RequestMapping(value = "/orgapply",method = RequestMethod.GET)
	public String verifyOrgApply(){

		return "verify-orgapply";
	}
	@RequestMapping(value = "/fameapply",method = RequestMethod.GET)
	public String verifyFameApply(){

		return "verify-fameapply";
	}

	/**
	 * 更新Shiro中当前用户的用户名.
	 */
	private void updateCurrentUserName(String userName) {
		ShiroUser user = (ShiroUser) SecurityUtils.getSubject().getPrincipal();
		user.name = userName;
	}
}
